﻿package mortal.game.view.lotteryDraw
{
    import Message.Game.*;
    import mortal.game.events.*;
    import mortal.game.mvc.*;
    import mortal.mvc.core.*;

    public class lotteryExchangeProxy extends Proxy
    {

        public function lotteryExchangeProxy()
        {
            return;
        }// end function

        public function requestMyRecord(param1:int) : void
        {
            rmi.iPlayerPrx.getLotteryRecords_async(new AMI_IPlayer_getLotteryRecords(this.onReceiveMyRecord, null, param1), lotteryRecordType.Record_Exchange_Mine, param1);
            return;
        }// end function

        public function requestBAreaRecord(param1:int) : void
        {
            rmi.iPlayerPrx.getLotteryRecords_async(new AMI_IPlayer_getLotteryRecords(this.onReceiveBAreaRecode, null, param1), lotteryRecordType.Record_Exchange_BArea, param1);
            return;
        }// end function

        public function onReceiveMyRecord(param1:AMI_IPlayer_getLotteryRecords, param2:Array) : void
        {
            Dispatcher.dispatchEvent(new DataEvent(EventName.LotteryExchangeInfoUpdate, {type:lotteryRecordType.Record_Exchange_Mine, info:param2, boxLevel:int(param1.userObject)}));
            return;
        }// end function

        public function onReceiveBAreaRecode(param1:AMI_IPlayer_getLotteryRecords, param2:Array) : void
        {
            Dispatcher.dispatchEvent(new DataEvent(EventName.LotteryExchangeInfoUpdate, {type:lotteryRecordType.Record_Exchange_BArea, info:param2, boxLevel:int(param1.userObject)}));
            return;
        }// end function

    }
}
